package com.bookmall.entity;

import java.time.LocalDateTime;

public class Order {
	private int orderId;				//订单id
	private String orderNo;				//订单编号
	private int cartId;					//购物车id
	private int userId;                 //用户id
	private double bookPrice;			//价格
	private int orderCount;				//数量
	private int status;					//状态，0未支付，1已支付，2取消订单̬
	private LocalDateTime createTime;	//创建时间
	private LocalDateTime modifyTime;	//修改时间
	private boolean deleteFlag;			//删除标记

	public Order() {
		super();
	}

	public Order(int orderId, String orderNo, int cartId, int userId, double bookPrice, int orderCount, int status,
			LocalDateTime createTime, LocalDateTime modifyTime, boolean deleteFlag) {
		super();
		this.orderId = orderId;
		this.orderNo = orderNo;
		this.cartId = cartId;
		this.userId = userId;
		this.bookPrice = bookPrice;
		this.orderCount = orderCount;
		this.status = status;
		this.createTime = createTime;
		this.modifyTime = modifyTime;
		this.deleteFlag = deleteFlag;
	}

	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public int getCartId() {
		return cartId;
	}

	public void setCartId(int cartId) {
		this.cartId = cartId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public double getBookPrice() {
		return bookPrice;
	}

	public void setBookPrice(double bookPrice) {
		this.bookPrice = bookPrice;
	}

	public int getOrderCount() {
		return orderCount;
	}

	public void setOrderCount(int orderCount) {
		this.orderCount = orderCount;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public LocalDateTime getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(LocalDateTime modifyTime) {
		this.modifyTime = modifyTime;
	}

	public boolean isDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Override
	public String toString() {
		return "Order [orderId=" + orderId + ", orderNo=" + orderNo + ", cartId=" + cartId + ", userId=" + userId
				+ ", bookPrice=" + bookPrice + ", orderCount=" + orderCount + ", status=" + status + ", createTime="
				+ createTime + ", modifyTime=" + modifyTime + ", deleteFlag=" + deleteFlag + "]";
	}

}